package com.yuyu.qingmangmall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuyu.common.utils.PageUtils;
import com.yuyu.qingmangmall.member.entity.MemberEntity;
import com.yuyu.qingmangmall.member.exception.EmailExistException;
import com.yuyu.qingmangmall.member.exception.UsernameExistException;
import com.yuyu.qingmangmall.member.vo.MemberLoginVo;
import com.yuyu.qingmangmall.member.vo.MemberRegisterVo;
import com.yuyu.qingmangmall.member.vo.SocialUser;

import java.util.Map;

/**
 * 会员
 *
 * @author yuwengsheng
 * @email 3337002363@qq.com
 * @date 2021-05-31 17:43:57
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void register(MemberRegisterVo registerVo);

    void checkUsernameUnique(String userName)throws UsernameExistException;

    void checkEmailUnique(String email) throws EmailExistException;

    MemberEntity login(MemberLoginVo memberLoginVo);

    MemberEntity oauthLogin(SocialUser socialUser) throws Exception;
}

